package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @ClassName CrmDefineFieldDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/6/18 11:23
 **/
@Data
@ApiModel("自定义字段Dto")
public class CrmDefineFieldDto extends BaseEntity {


    @ApiModelProperty(value = "继承的自定义字段ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "系统字段名称")
    @TableField("sys_name")
    private String sysName;

    @ApiModelProperty(value = "字段名称")
    @TableField("name")
    private String name;


    @ApiModelProperty(value = "字段来源company:客户")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "字段分类")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "字段值")
    @TableField("val")
    private String val;

    @ApiModelProperty(value = "长度")
    @TableField("length")
    private String length;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;


    @ApiModelProperty(value = "数据类型 1.基础 2.完全自定义 3.继承 4.继承自定义")
    @TableField("data_type")
    private Integer dataType;
    @ApiModelProperty(value = "继承来源编码(例如：crm.name , crm.jcc)")
    @TableField("parent_code")
    private String parentCode;
    @ApiModelProperty(value = "继承来源名称(例如：客户_客户名称)")
    @TableField("parent_name")
    private String parentName;




    @ApiModelProperty(value = "启用 0：否，1：是")
    @TableField("on_off")
    private Boolean onOff;

    @ApiModelProperty(value = "APP启用 0：否，1：是")
    @TableField("on_app_off")
    private Boolean onAppOff;


    @ApiModelProperty(value = "是否必填（0：否，1：是）")
    @TableField("on_fill")
    private Boolean onFill;

    @ApiModelProperty(value = "App是否必填（0：否，1：是）")
    @TableField("on_app_fill")
    private Boolean onAppFill;

    @ApiModelProperty(value = "是否导出（0：否，1：是）")
    @TableField("on_export")
    private Boolean onExport;

    @ApiModelProperty(value = "是否作为条件查询 1:是 0:否")
    @TableField("is_search")
    private Boolean isSearch;

    @ApiModelProperty(value = "APP是否作为条件查询 1:是 0:否")
    @TableField("is_app_search")
    private Boolean isAppSearch;

    @ApiModelProperty(value = "是否锁定 1:是 0:否")
    @TableField("on_locked")
    private Boolean onLocked;

    @ApiModelProperty(value = "列宽")
    @TableField("column_width")
    private Integer columnWidth;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

}
